{$B-}
{$X+}
{$T+}
{$P+}
{$H+}
{$J-}

{$IFNDEF WIN32}
   Thany components do not support 16-bit Windows.
{$ENDIF}

{$IFDEF VER170}
  {$DEFINE THANY_COMPILER_9}
  {$IFDEF BCB}
    {$DEFINE THANY_CPPB}
    {$DEFINE THANY_CPPB_9}
  {$ELSE}
    {$DEFINE THANY_DELPHI}
    {$DEFINE THANY_DELPHI_9}
  {$ENDIF}
{$ENDIF}

{$IFDEF VER180}
  {$DEFINE THANY_COMPILER_10}
  {$IFDEF BCB}
    {$DEFINE THANY_CPPB}
    {$DEFINE THANY_CPPB_10}
  {$ELSE}
    {$DEFINE THANY_DELPHI}
    {$DEFINE THANY_DELPHI_10}
  {$ENDIF}
{$ENDIF}

{$IFDEF VER150}
  {$DEFINE THANY_COMPILER_7}
  {$IFDEF BCB}
    {$DEFINE THANY_CPPB}
    {$DEFINE THANY_CPPB_7}
  {$ELSE}
    {$DEFINE THANY_DELPHI}
    {$DEFINE THANY_DELPHI_7}
  {$ENDIF}
{$ENDIF}

{$IFDEF VER140}
  {$DEFINE THANY_COMPILER_6}
  {$IFDEF BCB}
    {$DEFINE THANY_CPPB}
    {$DEFINE THANY_CPPB_6}
  {$ELSE}
    {$DEFINE THANY_DELPHI}
    {$DEFINE THANY_DELPHI_6}
  {$ENDIF}
{$ENDIF}

{$IFDEF VER130}
  {$DEFINE THANY_COMPILER_5}
  {$IFDEF BCB}
    {$DEFINE THANY_CPPB}
    {$DEFINE THANY_CPPB_5}
  {$ELSE}
    {$DEFINE THANY_DELPHI}
    {$DEFINE THANY_DELPHI_5}
  {$ENDIF}
{$ENDIF}

{$IFDEF VER125}
  {$DEFINE THANY_COMPILER_4}
  {$DEFINE THANY_CPPB}
  {$DEFINE THANY_CPPB_4}
{$ENDIF}

{$IFDEF VER120}
  {$DEFINE THANY_COMPILER_4}
  {$DEFINE THANY_DELPHI}
  {$DEFINE THANY_DELPHI_4}
{$ENDIF}

{$IFDEF VER110}
  {$DEFINE THANY_COMPILER_3}
  {$DEFINE THANY_CPPB}
  {$DEFINE THANY_CPPB_3}
{$ENDIF}

{$IFDEF VER100}
  {$DEFINE THANY_COMPILER_3}
  {$DEFINE THANY_DELPHI}
  {$DEFINE THANY_DELPHI_3}
{$ENDIF}

{$IFDEF VER93}
  {$DEFINE THANY_COMPILER_2}
  {$DEFINE THANY_CPPB}
  {$DEFINE THANY_CPPB_1}
{$ENDIF}

{$IFDEF VER90}
  {$DEFINE THANY_COMPILER_2}
  {$DEFINE THANY_DELPHI}
  {$DEFINE THANY_DELPHI_2}
{$ENDIF}

{$IFNDEF THANY_CPPB}
  {$IFNDEF THANY_DELPHI}
    {$DEFINE THANY_UNKNOWN_COMPILER}
  {$ENDIF}
{$ENDIF}

{$IFDEF THANY_COMPILER_2}
  {$DEFINE THANY_COMPILER_2_UP}
{$ENDIF}

{$IFDEF THANY_COMPILER_3}
  {$DEFINE THANY_COMPILER_2_UP}
  {$DEFINE THANY_COMPILER_3_UP}
{$ENDIF}

{$IFDEF THANY_COMPILER_4}
  {$DEFINE THANY_COMPILER_2_UP}
  {$DEFINE THANY_COMPILER_3_UP}
  {$DEFINE THANY_COMPILER_4_UP}
{$ENDIF}

{$IFDEF THANY_COMPILER_5}
  {$DEFINE THANY_COMPILER_2_UP}
  {$DEFINE THANY_COMPILER_3_UP}
  {$DEFINE THANY_COMPILER_4_UP}
  {$DEFINE THANY_COMPILER_5_UP}
{$ENDIF}

{$IFDEF THANY_COMPILER_6}
  {$DEFINE THANY_COMPILER_2_UP}
  {$DEFINE THANY_COMPILER_3_UP}
  {$DEFINE THANY_COMPILER_4_UP}
  {$DEFINE THANY_COMPILER_5_UP}
  {$DEFINE THANY_COMPILER_6_UP}
{$ENDIF}

{$IFDEF THANY_COMPILER_7}
  {$DEFINE THANY_COMPILER_2_UP}
  {$DEFINE THANY_COMPILER_3_UP}
  {$DEFINE THANY_COMPILER_4_UP}
  {$DEFINE THANY_COMPILER_5_UP}
  {$DEFINE THANY_COMPILER_6_UP}
  {$DEFINE THANY_COMPILER_7_UP}
{$ENDIF}

{$IFDEF THANY_COMPILER_9}
  {$DEFINE THANY_COMPILER_2_UP}
  {$DEFINE THANY_COMPILER_3_UP}
  {$DEFINE THANY_COMPILER_4_UP}
  {$DEFINE THANY_COMPILER_5_UP}
  {$DEFINE THANY_COMPILER_6_UP}
  {$DEFINE THANY_COMPILER_7_UP}
  {$DEFINE THANY_COMPILER_9_UP}
{$ENDIF}

{$IFDEF THANY_COMPILER_10}
  {$DEFINE THANY_COMPILER_2_UP}
  {$DEFINE THANY_COMPILER_3_UP}
  {$DEFINE THANY_COMPILER_4_UP}
  {$DEFINE THANY_COMPILER_5_UP}
  {$DEFINE THANY_COMPILER_6_UP}
  {$DEFINE THANY_COMPILER_7_UP}
  {$DEFINE THANY_COMPILER_9_UP}
  {$DEFINE THANY_COMPILER_10_UP}
{$ENDIF}

{$IFDEF THANY_DELPHI_2}
  {$DEFINE THANY_DELPHI_2_UP}
{$ENDIF}

{$IFDEF THANY_DELPHI_3}
  {$DEFINE THANY_DELPHI_2_UP}
  {$DEFINE THANY_DELPHI_3_UP}
{$ENDIF}

{$IFDEF THANY_DELPHI_4}
  {$DEFINE THANY_DELPHI_2_UP}
  {$DEFINE THANY_DELPHI_3_UP}
  {$DEFINE THANY_DELPHI_4_UP}
{$ENDIF}

{$IFDEF THANY_DELPHI_5}
  {$DEFINE THANY_DELPHI_2_UP}
  {$DEFINE THANY_DELPHI_3_UP}
  {$DEFINE THANY_DELPHI_4_UP}
  {$DEFINE THANY_DELPHI_5_UP}
{$ENDIF}

{$IFDEF THANY_DELPHI_6}
  {$DEFINE THANY_DELPHI_2_UP}
  {$DEFINE THANY_DELPHI_3_UP}
  {$DEFINE THANY_DELPHI_4_UP}
  {$DEFINE THANY_DELPHI_5_UP}
  {$DEFINE THANY_DELPHI_6_UP}
{$ENDIF}

{$IFDEF THANY_DELPHI_7}
  {$DEFINE THANY_DELPHI_2_UP}
  {$DEFINE THANY_DELPHI_3_UP}
  {$DEFINE THANY_DELPHI_4_UP}
  {$DEFINE THANY_DELPHI_5_UP}
  {$DEFINE THANY_DELPHI_6_UP}
  {$DEFINE THANY_DELPHI_7_UP}
{$ENDIF}

{$IFDEF THANY_DELPHI_9}
  {$DEFINE THANY_DELPHI_2_UP}
  {$DEFINE THANY_DELPHI_3_UP}
  {$DEFINE THANY_DELPHI_4_UP}
  {$DEFINE THANY_DELPHI_5_UP}
  {$DEFINE THANY_DELPHI_6_UP}
  {$DEFINE THANY_DELPHI_7_UP}
  {$DEFINE THANY_DELPHI_9_UP}
{$ENDIF}

{$IFDEF THANY_DELPHI_10}
  {$DEFINE THANY_DELPHI_2_UP}
  {$DEFINE THANY_DELPHI_3_UP}
  {$DEFINE THANY_DELPHI_4_UP}
  {$DEFINE THANY_DELPHI_5_UP}
  {$DEFINE THANY_DELPHI_6_UP}
  {$DEFINE THANY_DELPHI_7_UP}
  {$DEFINE THANY_DELPHI_9_UP}
  {$DEFINE THANY_DELPHI_10_UP}
{$ENDIF}

{$IFDEF THANY_CPPB_3}
  {$DEFINE THANY_CPPB_3_UP}
{$ENDIF}

{$IFDEF THANY_CPPB_4}
  {$DEFINE THANY_CPPB_3_UP}
  {$DEFINE THANY_CPPB_4_UP}
{$ENDIF}

{$IFDEF THANY_CPPB_5}
  {$DEFINE THANY_CPPB_3_UP}
  {$DEFINE THANY_CPPB_4_UP}
  {$DEFINE THANY_CPPB_5_UP}
{$ENDIF}

{$IFDEF THANY_CPPB_6}
  {$DEFINE THANY_CPPB_3_UP}
  {$DEFINE THANY_CPPB_4_UP}
  {$DEFINE THANY_CPPB_5_UP}
  {$DEFINE THANY_CPPB_6_UP}
{$ENDIF}

{$IFDEF THANY_CPPB_7}
  {$DEFINE THANY_CPPB_3_UP}
  {$DEFINE THANY_CPPB_4_UP}
  {$DEFINE THANY_CPPB_5_UP}
  {$DEFINE THANY_CPPB_6_UP}
  {$DEFINE THANY_CPPB_7_UP}
{$ENDIF}

{$IFDEF THANY_CPPB_9}
  {$DEFINE THANY_CPPB_3_UP}
  {$DEFINE THANY_CPPB_4_UP}
  {$DEFINE THANY_CPPB_5_UP}
  {$DEFINE THANY_CPPB_6_UP}
  {$DEFINE THANY_CPPB_7_UP}
  {$DEFINE THANY_CPPB_9_UP}
{$ENDIF}

{$IFDEF THANY_CPPB_3_UP}
  // C++Builder requires this if you use Delphi components in run-time packages.
  {$ObjExportAll On}
{$ENDIF}

{$IFDEF THANY_COMPILER_7_UP}
  {$DEFINE ThemeSupport}
{$ENDIF}
